package org.xmppbot.net;

import java.io.IOException;

/**
 * Comment here.
 * <p/>
 * User: Bulat Nigmatullin
 * Date: 01.08.2009
 * Time: 17:00:16
 */
public interface ConnectionStrategy {

    /**
     * Start accepting connections.
     *
     * @throws IOException connection startup error
     */
    void start() throws IOException;

    /**
     * Stop accepting connections, disconnect connected.
     */
    void stop();

}
